package serverapp;

import java.io.Serializable;

/**
 *
 * @author a
 */
public class Player implements Serializable {

    public int id;
    public String name;
    public String surname;
    public String nationality;
    public int age;
    public int number;
    public String club;
    public String position;
    public int height;
    public int weight;
    public int attRange;
    public int defRange;
    public int successAttacks;
    public int blockedAttacks;
    public int failedAttacks;
    public int successBlocks;
    public int defendedBlocks;
    public int failedBlocks;
    public int serveAces;
    public int receivedServes;
    public int failedServes;
    public int receivesToNet;
    public int bouncedReceives;
    public int failedReceives;
    public int defencesNet;
    public int bouncedDefences;
    public int failedDefences;
    public int singleBlockPasses;
    public int tripleBlockPasses;
    public int failedPasses;

    public String getName() {
        return name;
    }

    public String getSurname() {
        return surname;
    }

    public Player(int aId, String aName, String aSurname) {
        id = aId;
        name = aName;
        surname = aSurname;
    }

    public Player() {
    }

    public Player(int aId, String aName, String aSurname, String aNationality, int aAge, int aNumber,
            String aClub, String aPosition, int aHeight, int aWeight, int aAttRange, int aDefRange, int aSuccessAttacks, int aBlockedAttacks, int aFailedAttacks, int aSuccessBlocks, int aDefendedBlocks, int aFailedBlocks, int aServeAces, int aReceivedServes, int aFailedServes, int aReceivesToNet, int aBouncedReceives, int aFailedReceives, int aDefencesNet, int aBouncedDefences, int aFailedDefences, int aSingleBlockPasses, int aTripleBlockPasses, int aFailedPasses) {
        id = aId;
        name = aName;
        surname = aSurname;
        nationality = aNationality;
        age = aAge;
        number = aNumber;
        club = aClub;
        position = aPosition;
        height = aHeight;
        weight = aWeight;
        attRange = aAttRange;
        defRange = aDefRange;
        successAttacks = aSuccessAttacks;
        blockedAttacks = aBlockedAttacks;
        failedAttacks = aFailedAttacks;
        successBlocks = aSuccessBlocks;
        defendedBlocks = aDefendedBlocks;
        failedBlocks = aFailedBlocks;
        serveAces = aServeAces;
        receivedServes = aReceivedServes;
        failedServes = aFailedServes;
        receivesToNet = aReceivesToNet;
        bouncedReceives = aBouncedReceives;
        failedReceives = aFailedReceives;
        defencesNet = aDefencesNet;
        bouncedDefences = aBouncedDefences;
        failedDefences = aFailedDefences;
        singleBlockPasses = aSingleBlockPasses;
        tripleBlockPasses = aTripleBlockPasses;
        failedPasses = aFailedPasses;
    }
}
